<template>
  <div id="app">
    <el-config-provider :locale="zhCn">
      <el-container class="app-container">
        <el-main class="app-main">
          <router-view />
        </el-main>
      </el-container>
    </el-config-provider>
  </div>

</template>

<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { useDark } from '@vueuse/core'

const isDark = useDark()
</script>

<style>
.app-container {
  min-height: 100vh;
}

.el-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* 暗色主题相关样式 */
html.dark {
  color-scheme: dark;
  --el-bg-color: #1d1e1f;
}

.dark body {
  background-color: var(--el-bg-color);
}
</style>